set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5Widgets)

set(UI_SRC_FILES adddocumentdlg.ui adddocumentdlg.h adddocumentdlg.cpp)

add_library(UI ${UI_SRC_FILES})

qt5_use_modules(UI Widgets)